翻訳と辞書
Words near each other
・ Ropars
・ Roparun
・ Roparz Hemon
・ Ropata Te Ao
・ Ropata Wahawaha
・ Ropate Ratu
・ Ropati Pitoitua
・ Ropavske
・ Ropaži
・ Ropaži Municipality
・ Ropcha
・ Ropczyce
・ Ropczyce-Sędziszów County
・ Rope
・ Rope (1957 film)
Rope (data structure)
・ Rope (disambiguation)
・ Rope (film)
・ Rope (play)
・ Rope (rhythmic gymnastics)
・ Rope (song)
・ Rope (torture)
・ Rope (unit)
・ Rope a Dope Style
・ Rope access
・ Rope and Breasts
・ Rope and Skin
・ Rope and Summit
・ Rope bondage
・ Rope bridge


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Rope (data structure) : ウィキペディア英語版
Rope (data structure)

In computer programming, a rope, or cord, is a data structure composed of smaller strings that is used for efficiently storing and manipulating a very long string. For example, a text editing program may use a rope to represent the text being edited, so that operations such as insertion, deletion, and random access can be done efficiently.〔

==Description==
A rope is a binary tree having leaf nodes that contain a short string. Each node has a weight value equal to the length of its string plus the sum of all leaf nodes' weight in its left subtree, namely the weight of a node is the total string length in its left subtree for a non-leaf node, or the string length of itself for a leaf node. Thus a node with two children divides the whole string into two parts: the left subtree stores the first part of the string. The right subtree stores the second part and its weight is the sum of the left child's weight and the length of its contained string.
The binary tree can be seen as several levels of nodes. The bottom level contains all the nodes that contain a string. Higher levels have fewer and fewer nodes. The top level consists of a single "root" node. The rope is built by putting the nodes with short strings in the bottom level, then attaching a random half of the nodes to parent nodes in the next level.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Rope (data structure)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.